--主角掉血
---@class Battle.Skill1012001:Battle.SkillScriptBase
local Skill1012001 = Battle.CreateClass("Skill1012001",Battle.SkillScriptBase)
Battle.Skill1012001 = Skill1012001
--region override
---创建
function Skill1012001:OnCreate()
    self.param = self.skill.skillData.f_ScriptParameter
end
---销毁

--检查技能可否释放
function Skill1012001:CheckSkill()
    local hp = self.actor:GetHp()
    local damage =  self.actor:GetHpMax() * self.param[1]/10000;
    if hp < damage then
        return true;
    else
        return false;
    end
end
--endregion override
return Skill1012001


